package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xmy.cultivate.enums.StatusStaffEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 员工状态变动
 * </p>
 *
 * @author hpiggy
 * @since 2024-02-01
 */
@TableName("staff_status_change")
@ApiModel(value = "StaffStatusChange对象", description = "员工状态变动")
@Data
public class StaffStatusChange implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long staffId;

    private StatusStaffEnum status;

    private Integer justType;

    private Integer yearPart;

    private Integer quarterNum;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("原因id")
    private Integer causeId;

    @ApiModelProperty("原因内容")
    private String causeContent;


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;
}
